﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class ChiTietToaThuocBUS
    {
        public static DataTable LayDanhSachChiTietToaThuoc()
        {
            return ChiTietToaThuocDAO.LayDanhSachChiTietToaThuoc();
        }

        public static void ThemChiTietToaThuoc(ChiTietToaThuocDTO obj)
        {
            ChiTietToaThuocDAO.ThemChiTietToaThuoc(obj);
        }

        public static void XoaChiTietToaThuoc(int mathuoc, int matt)
        {
            ChiTietToaThuocDAO.XoaChiTietToaThuoc(mathuoc, matt);
        }

        public static void SuaChiTietToaThuoc(ChiTietToaThuocDTO obj)
        {
            ChiTietToaThuocDAO.SuaChiTietToaThuoc(obj);
        }

        public static ChiTietToaThuocDTO LayThongTinChiTietToaThuocTheoChiTietToaThuoc(int maChiTietToaThuoc)
        {
            return ChiTietToaThuocDAO.LayThongTinChiTietToaThuocTheoMaChiTietToaThuoc(maChiTietToaThuoc);
        }

        public static DataTable LayDanhSachChiTietToaThuocTheoMaPKB(string sql)
        {
            return ChiTietToaThuocDAO.LayDanhSachChiTietToaThuocTheoMaPKB(sql);
        }
    }
}
